﻿<%@ Page Title="" Language="C#" MasterPageFile="~/back/Site.master" AutoEventWireup="true" CodeFile="PaymentDetails.aspx.cs" Inherits="back_PaymentDetails" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
<script type="text/javascript" language="javascript">
    $(document).ready(function () {
        $('[data-rel="chosen"],[rel="chosen"]').chosen();
    });
    var prm = Sys.WebForms.PageRequestManager.getInstance();

    prm.add_endRequest(function () {
        $('[data-rel="chosen"],[rel="chosen"]').chosen();
    });
        
    </script>
<div class="page-header">
        <h1>
            View Payments</h1>
    </div>
    <div id="divRed" runat="server">
    </div>
    <div id="divGreen" runat="server">
    </div>
    <br />
    <br />
    <div class="control-group">
        <label class="control-label">
            Select User
        </label>
        <div class="controls">
            <asp:DropDownList ID="drpUser" data-rel="chosen" runat="server" AutoPostBack="true">
            </asp:DropDownList>
        </div>
    </div>
    <br />
    <br />
    <asp:GridView ID="grdPayment" runat="server" AutoGenerateColumns="False" Width="100%"
        CssClass="table table-striped table-bordered" OnRowDataBound="grdPayment_RowDataBound"
        PageSize="3" OnPageIndexChanging="grdPayment_PageIndexChanging"
        AllowPaging="true">
        <Columns>
            <asp:TemplateField HeaderText="Name">
                <ItemTemplate>
                    <asp:Label ID="hdnUserId" Style="display: none;" runat="server" Text='<%#Eval("UserId") %>'></asp:Label>
                    <asp:Label ID="lblName" runat="server"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Payment Mode">
                <ItemTemplate>
                    <asp:Label ID="lblMode" runat="server" Text='<%#Eval("Mode") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Amount">
                <ItemTemplate>
                    <asp:Label ID="lblAmount" runat="server" Text='<%#Eval("Amount") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Payment Date">
                <ItemTemplate>
                    <asp:Label ID="lblDate" runat="server" Text='<%#Eval("Date") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <PagerSettings Position="TopAndBottom" />
        <PagerStyle CssClass="pagination" />
    </asp:GridView>
</asp:Content>

